* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 380px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
}

.container {
  padding: 16px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e1e5e9;
}

h1 {
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95a5a6;
}

.status.running .status-dot {
  background: #27ae60;
  animation: pulse 2s infinite;
}

.status.stopped .status-dot {
  background: #e74c3c;
}

.status-text {
  color: #7f8c8d;
}

.status.running .status-text {
  color: #27ae60;
}

.status.stopped .status-text {
  color: #e74c3c;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.section {
  margin-bottom: 20px;
}

.section h3 {
  font-size: 14px;
  color: #34495e;
  margin-bottom: 12px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 12px;
  color: #5d6d7e;
  margin-bottom: 4px;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d5dbdb;
  border-radius: 6px;
  font-size: 13px;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

small {
  font-size: 11px;
  color: #85929e;
  display: block;
  margin-top: 4px;
}

.button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 80px;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-test {
  background: #9b59b6;
  color: white;
}

.btn-test:hover {
  background: #8e44ad;
}

.btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.last-message {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  color: #5d6d7e;
  min-height: 40px;
  line-height: 1.4;
}

.last-message.new {
  border-left: 3px solid #3498db;
  background: #f8f9fa;
}

.footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e1e5e9;
  text-align: center;
}

#lastCheck {
  font-size: 11px;
  color: #85929e;
}